<div id="reg">
<div><h2>Регистрация</h2></div>
<div id="regPol">
<form action="index.php?reg" method="post">
<table width="100%" border="0" cellpadding="2" cellspacing="4">
  <tr>
    <td width="25%">Логин</td>
    <td width="75%"><input id="login" name="login" type="text" size="20" maxlength="40"></td>
    </tr>
  <tr>
    <td>Пароль</td>
    <td><input id="pass1" name="password" type="password" size="20" maxlength="40"></td>
    </tr>
  <tr>
    <td>Повторите пароль</td>
    <td><input id="pass2" name="password2" type="password" size="20" maxlength="40"></td>
    </tr>
    <tr>
    <td>Эл. Адрес</td>
    <td><input name="mail" type="text" size="20" maxlength="40"></td>
    </tr>
    <tr>
    <td>Еще раз</td>
    <td><input name="mail2" type="text" size="20" maxlength="40"></td>
    </tr>
</table>
</div>
<div id="kcaptcha">
<?php echo '<img src=\'kcaptcha/./?' . session_name() . '=' . session_id() . '\'> <br>'; ?>
<input name="kcaptcha" type="text" size="20" maxlength="20"><br>
<p id="button"><input type="submit" name="reg_form" value="Регистрация"></input></p>
</div>
</form>
</div>
<?php
/*
echo 'Register Form';
echo '<img src=\'kcaptcha/./?' . session_name() . '=' . session_id() . '\'> <br>';
echo $_SESSION['captcha_keystring'];
*/
?>